import { createApp } from 'vue';
import { createPinia } from 'pinia';

import App from './App.vue';
import router from './router';
import md5 from 'md5';
import { v4 as uuid } from 'uuid';

// element时间相关组件使用dayjs来管理，国际化设置要单独引入
import 'dayjs/locale/zh-cn';

import './style/main.css';
import './assets/icon/icon.less';

const app = createApp(App);

app.provide('$md5', md5);
app.provide('$uuid', uuid);

app.use(createPinia());
app.use(router);

app.mount('#app');
